package com.cxrj.zhsq.userManage.dao;

import java.util.List;
import java.util.Map;

import com.cxrj.zhsq.userManage.entity.Organization;

public interface OrganizationMapper {
	int deleteByPrimaryKey(Integer organizationId);

	int insert(Organization record);

	int insertSelective(Organization record);

	Organization selectByPrimaryKey(Integer organizationId);

	int updateByPrimaryKeySelective(Organization record);

	int updateByPrimaryKey(Organization record);

	List<Map<String, Object>> selectOrganizationByParentId(Map<String, Object> map);

	Map<String, Object> selectOrganizationByCode(Map<String, Object> map);

	void insertOrganization(Map<String, Object> map);

	void updateOrganization(Map<String, Object> map);

	void deleteByIds(List<Object> ids);

	List<Map<String, Object>> selectByParentId(Map<String, Object> map);

	Map<String, Object> selectTopOrganization();

	int getCommunityListCount(String string);

	List<Map<String, Object>> selectCommunityListPager(Map<String, Object> sqlMap);

	List<Map<String, Object>> selectAllCommunity();
	
	List<Organization> selectByName(Map<String, Object> sqlMap);
}